<h1 class="loose">Settings</h1>
<div id="formWrapper">
<div id="icon_fb">
<?php 
$uc = User::checkUserAuthProvider($this->user, AuthProvider::FACEBOOK);
if (!empty($uc)) {
?>Already connected with facebook. <a target="_blank"  href="http://www.facebook.com/profile.php?id=<?php echo $uc->auth_uid;?>">Go there!</a>
<?php }else { ?>
<a href="<?php echo $this->url(array("controller"=>"user", "action"=>"fbconnect"), "default", true);?>">To connect</a> with <strong>Facebook</strong> to get more trust :D
<?php }?>
</div>

<img style="clear:both;float:left;" src="<?php echo $this->userProfile($this->user);?>" />
<?php 
echo $this->form;
?>

</div>